﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="channel_list" data-title="栏目列表">
	<dl class="path1">
		<dt><span>您的位置：</span>栏目列表</dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<div class="ali-tabs" data-event="click">
		<div class="ali-tabs-header">
			<div class="ali-tabs-nav-container">
				<ul>
					<li class="ali-active"><a>栏目列表</a></li>
					<li><a href="add.aspx?Lang=<%=ContentLang%>" target="ali-navtab">添加栏目</a></li>
				</ul>				
			</div>
		</div>
		<div class="ali-tabs-body">
			<div class="ali-tabs-panel">
				<table data-ali-widget="grid" class="grid1" data-tree="true" data-root="0">
					<thead>
						<tr>
							<th width="80">移动</th>
							<th>名称</th>
							<th>路径/预览</th>
							<th>更换模板</th>
							<th width="80">栏目绑定</th>
							<th width="80">栏目菜单</th>
							<th width="80">删除</th>
						</tr>
					</thead>
					<tbody>
						<ali:Tree Object="Channel" Validate="True">
							<ali:Record>
								<tr data-id="<%=InnerID%>">
									<td data-sort="<%=InnerID%>" data-name="<%=Name%>"><%=InnerID%></td>
									<th data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" class="<%=ContentLang%>Font"><a href="edit.aspx?Lang=<%=ContentLang%>&ID=<%=InnerID%>" target="ali-navtab"><%=Name%></a></th>
									<td>
										<%If Convert.IsDBNull(TemplatePath)%>
											<a href="<%=Path%>" target="_blank"><%=Path%></a>
										<%ElseIf Convert.ToString(Domain) != String.Empty%>
											<a href="<%=Domain%><%=DefaultDocument%><%=Extension%>" target="_blank"><%=Domain%><%=DefaultDocument%><%=Extension%></a>
										<%Else%>
											<a href="<%=WebPath%><%=Path%><%=DefaultDocument%><%=Extension%>" target="_blank"><%=WebPath%><%=Path%><%=DefaultDocument%><%=Extension%></a>
										<%EndIf%>
									</td>
									<td><a href="change_template.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>" target="ali-navtab"><%=SkinPath%></a></td>
									<td>
										<%If !Convert.IsDBNull(TemplatePath)%>
											<a href="extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=InnerID%>" target="ali-navtab">栏目绑定</a>
										<%EndIf%>
									</td>
									<td>
										<%If Convert.ToBoolean(EnableMenu)%>
											<a href="menu/list.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=InnerID%>" target="ali-navtab">栏目菜单</a>
										<%EndIf%>
									</td>
									<td><a class="ali-button" data-operation="Delete">删除</a></td>
								</tr>
								<%=ChildRecords%>
							</ali:Record>
						</ali:Tree>
					</tbody>
				</table>
			</div>
		</div>
		<div class="ali-tabs-bottom"><b></b></div>
	</div>
</section>